package com.ms.dsq_english.utils;

import android.content.Context;

import com.ms.dsq_english.http.HttpManager;

import java.util.HashMap;

import static com.ms.dsq_english.utils.DateUtils.DATE_FORMAT;
import static com.ms.dsq_english.utils.SecretUtils.CODE;

public class MapUtilsParamNull
{
    public HashMap<String, String> getBaseMap(Context context)
    {
        HashMap<String, String> map = new HashMap<>();


        map.put("app_id", "100004");
        map.put("app_version", VersionCodeUtils.getAppVersionName(context) );
        map.put("timestamp", DateUtils.getDate(DATE_FORMAT));

        map.put("sign", SecretUtils.byMD5Code(CODE +
                "app_id" + map.get("app_id") +
                "app_version" + map.get("app_version") +
                "timestamp" + map.get("timestamp") +
                CODE));

        LogUtils.showLog(HttpManager.TAG, "map=" + map.toString());

        return map;
    }
}
